#ifndef QS_ACTION_H_
#define QS_ACTION_H_
#include "qs_config.h"

typedef void(*qs_action_on_work_handle_s)(uint8_t evt);
typedef void(*qs_action_on_work_cmd_handle_s)(uint16_t cmd, uint16_t value , uint16_t value1 , uint16_t value2);


#define   QS_ACTION_IDLE_MODE 0
#define   QS_ACTION_AUTO_SET_MODE 1

extern  uint8_t errorflag;
extern  uint8_t goto_sleep_timer;


void qs_action_mode_timeout_set(uint16_t timeout);
void qs_action_init(bool reset);
void qs_action_data_process(void);
float qs_action_heat_voltage_read(void);
float qs_action_fan_current_read(void);
uint8_t qs_action_humid_threshold_get(void);
uint8_t qs_action_mode_get(void);
void qs_action_mode_set(uint8_t mode);
void qs_action_ble_ack_send(uint8_t type);
void qs_action_on_work_handle_set(qs_action_on_work_handle_s on_work_handle);


void qs_action_on_work_cmd_handle_set(qs_action_on_work_cmd_handle_s on_work_cmd_handle);

#endif






